package system

import (
	"context"
	"gf_blog_admin/internal/service"

	"gf_blog_admin/api/system/v1"
)

func (c *ControllerV1) MenuTree(ctx context.Context, req *v1.MenuTreeReq) (res *v1.MenuTreeRes, err error) {
	res = &v1.MenuTreeRes{}
	res.Rows, err = service.SysMenu().TreeList(ctx)
	return
}
